const home = require("./modules/home");
const test = require("./modules/test");

const modules = [...home, ...test];

module.exports = function setupMock(app) {
  modules.forEach((module) => {
    app[module.method](module.url, function (req, res) {
      res.json(module.response);
    });
  });
};
